cmake_minimum_required(VERSION 3.14)
project(OpenGL)

set(CMAKE_CXX_STANDARD 11)

include_directories(${PROJECT_SOURCE_DIR}/include)
link_directories(${PROJECT_SOURCE_DIR}/libs)



# hello window
add_executable(hello_window
        src/01_hello_gl/hello_window.cpp
        src/common/glad.c)
target_link_libraries(hello_window
        ${PROJECT_SOURCE_DIR}/libs/libglfw.3.dylib
        )

# hello triangle
add_executable(hello_triangle
        src/01_hello_gl/hello_triangle.cpp
        src/common/glad.c)
target_link_libraries(hello_triangle
        ${PROJECT_SOURCE_DIR}/libs/libglfw.3.dylib
        )

# for tests
add_executable(gl_tests
        src/OpenGLTests.cpp)
target_link_libraries(gl_tests
        ${PROJECT_SOURCE_DIR}/libs/libgtestd.1.10.0.dylib
        ${PROJECT_SOURCE_DIR}/libs/libgtest_maind.1.10.0.dylib
        )